#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project  : untitled1
# @File     : page_tencent_news_agree.py
# @Author   : liujie
# @Time     : 2021/07/07 22:41
from selenium.webdriver.common.by import By

class PageTencentNewsAgree():
    def __init__(self, driver):
        self.driver = driver

        # 定位器
        self.loc_ele_agree = (By.XPATH, '//android.widget.TextView[@resource-id="com.tencent.news:id/q3"]') #点击同意

    '''点击同意进入'''
    def ele_agree(self):
        self.driver.find_element(*self.loc_ele_agree).click()

